/**
 * Created by lixinkun on 2017/4/20.
 */
'use strict';

import {Provider} from 'react-redux';
import React from 'react';
import {Navigator} from 'react-native';
import {store} from './store/index';
import MainPage from './containers/MainPage';
import SplashScreen from './native_modules/SplashScreen';

export default class App extends React.Component {
    render() {
        return(
            <Provider store={store} >
                <Navigator
                initialRoute={{component: MainPage}}
                renderScene={(route, navigator) =>
                <route.component {...route.args} navigator={navigator}/>
                }
                />
            </Provider>
        )
    }

    componentDidMount() {
        SplashScreen.hide();
    }
}